$def with (node, doc)

$# hgwiki, Copyright (c) 2010, R. P. Dillon <rpdillon@etherplex.org>
$# This file is part of hgwiki.
$#
$# hgwiki is free software: you can redistribute it and/or modify
$# it under the terms of the GNU General Public License as published by
$# the Free Software Foundation, either version 3 of the License, or
$# (at your option) any later version.
$#
$# This program is distributed in the hope that it will be useful,
$# but WITHOUT ANY WARRANTY; without even the implied warranty of
$# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
$# GNU General Public License for more details.
$#
$# You should have received a copy of the GNU General Public License
$# along with this program.  If not, see <http://www.gnu.org/licenses/>.

Editing $(node) using <a href="/help">reStructuredText</a>:<br>
<p>
  <div dojoType="dijit.form.Form" id="editform" jsId="editform" method=POST action="/edit/$(node)" name="editform">
    <textarea id="wikitext" name="wikitext" dojoType="dijit.form.Textarea" style="width:90%; font-family: monospace;">$doc</textarea>
    <p>
      <button dojoType="dijit.form.Button" type="submit" name="saveButton" value="Save">Save</button> 
      <a style="text-decoration:none" href="/$(node)"><button dojoType="dijit.form.Button">Cancel</button></a>
    </p>
  </div>
</p>
